require("bufferline").setup({
  options = {
    -- mode = "tabs",
    -- 关闭 Tab 的命令（bufdelete）
    close_command = "Bdelete! %d",
    right_mouse_command = "Bdelete! %d",
    indicator = {
      icon = "▎", -- this should be omitted if indicator style is not 'icon'
      style = "underline",
    },
    show_tab_indicators = true,
    groups = {
      items = {
        require("bufferline.groups").builtin.pinned:with({ icon = "" }),
        -- other items
      },
    },
    -- 使用 nvim 内置lsp
    diagnostics = "nvim_lsp",
    -- 让出位置
    offsets = {
      {
        filetype = "NvimTree",
        text = "File Explorer",
        highlight = "Directory",
        separator = true,
        padding = 1,
      },
      {
        filetype = "Outline",
        text = "Symbols Outline",
        text_align = "right",
      },
    },
  },
})
